import request from '@/utils/request'

// 查询团课课程管理列表
export function listTeamClass(query) {
  return request({
    url: '/keep/teamClass/list',
    method: 'get',
    params: query
  })
}

// 查询团课课程管理详细
export function getTeamClass(id) {
  return request({
    url: '/keep/teamClass/' + id,
    method: 'get'
  })
}

// 新增团课课程管理
export function addTeamClass(data) {
  return request({
    url: '/keep/teamClass',
    method: 'post',
    data: data
  })
}

// 修改团课课程管理
export function updateTeamClass(data) {
  return request({
    url: '/keep/teamClass',
    method: 'put',
    data: data
  })
}

// 删除团课课程管理
export function delTeamClass(id) {
  return request({
    url: '/keep/teamClass/' + id,
    method: 'delete'
  })
}
